function sort(column) {
	var property = $(column).attr("property");

	var $order = $(document.forms[0]).find("input[name='order']");
	var order = $order.val();
	var $by = $(document.forms[0]).find("input[name='by']");
	var by = $by.val();

	if (by == property) {
		if (order == "ASC") {
			$order.val("DESC");
		} else {
			$order.val("ASC");
		}
	} else {
		$order.val("ASC");
		$by.val(property);
	}

	document.forms[0].submit();
}